package com.zyong.design.pattern.responsibility.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: AbstractApprover
 * @author: zyong
 * @create: 2024-04-09 00:05
 */
public abstract class AbstractApprover {
    protected AbstractApprover approver;
    protected String name;

    public AbstractApprover(String name) {
        this.name = name;
    }

    public void setApprover(AbstractApprover approver) {
        this.approver = approver;
    }

    /**
     * 处理请求
     * @param purchaseRequest
     */
    abstract protected void processRequest(PurchaseRequest purchaseRequest);
}
